package org.hilo.boot.app.config;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.core.io.ResourceLoader;

/**
 * override the SpringApplicationBuilder
 * 
 * @author zollty
 * @since 2018-3-2
 */
public class MainSpringApplicationBuilder extends SpringApplicationBuilder {

    protected SpringApplication createSpringApplication(Class<?>... sources) {
        return new MainApplication(sources);
    }

    protected SpringApplication createSpringApplication(ResourceLoader resourceLoader, Class<?>... sources) {
        return new MainApplication(resourceLoader, sources);
    }

}
